Repository navigation
feat(pm-stack): primary-parent validation + audit output + label family sync (#9066) - #13700
Merged
Merged
Conversation
… sync (#9066) - metadata-ingestion: collectPrimaryParentViolations enforces at-most-one primary-parent/* label, label/native agreement or ancestor rule, and reports unresolved labels; never resolves them. - metadata-sweeper: runs the validator per item, reads the native parent ancestor chain when a label is present, and reports violations in the JSON audit output. - scripts/sync-primary-parent-labels: idempotently creates primary-parent/<slug> for each epic/<slug> (strict argv, --dry-run). Refs #9066
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 15 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
… combine checked-var rename with main formatting)
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the collector-side half of #9066 (design §3 + §11 semantics), from
doc/2026-11-12T22-50-00Z_design_pm-board-hierarchy-genealogy/note.md.What lands here
Primary-parent invariants are now checked, not silently resolved (
pm-stack/aggregator/src/metadata-ingestion.ts):primary-parent/*label per issue;primary-parent/<slug>naming no known epic is reported.collectPrimaryParentViolationsonly reports — resolution stays a reconcile/human decision, per the design's "violations are reported, never silently resolved".The sweeper surfaces those findings in its audit output (
scripts/metadata-sweeper.ts): every repo row in the JSON summary now carriesprimaryParentViolationsand theviolations[]list. The native-parent ancestor chain is fetched only when aprimary-parent/*label is present; an unreadable chain is logged and never manufactures a finding.scripts/sync-primary-parent-labels.tscreates theprimary-parent/<slug>family from today'sepic/<slug>family (idempotent,--dry-run, strict argv contract Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352). Slug-too-long-for-50-chars are skipped and reported, never truncated.Tests:
test/primary-parent-validation.test.tspins each invariant and the label planner (13 tests). Existing metadata tests still pass.Not in this slice (remaining #9066 acceptance)
project-reconcilemaintaining thepm-metadatablock with divergence findings (that surface lives outside this repo — hatch-personal'sproject-reconcile.sh; the validator added here is the shared rule it can call).Refs #9066
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T20:53:19Z", "session_id": "ses_e5df613d66effe3gUy3c1n1m5g", "lane": null, "host": "amd", "worktree": "/home/user/git/fleet/20430-9066-primary-parent-impl", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/fleet/20430-9066-primary-parent-impl", "repo": "developing-today/code", "branch": "queue/20430-9066-primary-parent-impl", "sha": "fa271715267979280c1d4cda74d7a1c6a557c25f" }, "auth_subject": "oc-code-05", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.